package yf.mall.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Sep 27 18:42:53 CST 2019
 * TODO 暂时废弃
 */
@Getter
public enum MallOrderOrderFromEnum {


//    MALL(0, "商城"),
//    ADMIN(1, "后台"),
    COD(2, "收款");


    int index;
    String value;

    MallOrderOrderFromEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallOrderOrderFromEnum.values()[idx].getValue();
    }

}
